import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a1227
 * Date: 2022-09-14
 * Time: 23:49
 */
public class Test {
    /**
     * BC114 圣诞树
     * @param args
     */
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int trunk = 1;
        int n = scan.nextInt();
        int space = n * 3;
        for(int i = 1; i <= n; i++){
            for(int j = 1; j <= space - 1; j++){
                System.out.print(" ");
            }
            for(int j = 1; j <= i; j++){
                System.out.print("*     ");
            }
            System.out.println();
            for(int j = 1; j <= space - 2; j++){
                System.out.print(" ");
            }
            for(int j = 1; j <= i; j++){
                System.out.print("* *   ");
            }
            System.out.println();
            for(int j = 1; j <= space - 3; j++){
                System.out.print(" ");
            }
            for(int j = 1; j <= i; j++){
                System.out.print("* * * ");
            }
            System.out.println();
            space -= 3;
        }
        space = 3 * n;
        for(; n > 0; n--){
            for(int i = 1; i <= space - 1; i++){
                System.out.print(" ");
            }
            System.out.println("*");
        }
    }
}
